.class public Lcom/estrongs/android/pop/app/analysis/c;
.super Ljava/lang/Object;
.source "AnalysisDetailDataHelper.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/app/analysis/c$c;,
        Lcom/estrongs/android/pop/app/analysis/c$d;,
        Lcom/estrongs/android/pop/app/analysis/c$b;
    }
.end annotation


# direct methods
.method public static a(Lcom/estrongs/android/pop/app/analysis/c$c;)I
    .locals 2

    const v0, 0x7f0805ca

    if-nez p0, :cond_0

    return v0

    .line 47
    :cond_0
    iget p0, p0, Lcom/estrongs/android/pop/app/analysis/c$c;->e:I

    const/4 v1, 0x1

    if-eq p0, v1, :cond_4

    const/4 v1, 0x2

    if-eq p0, v1, :cond_3

    const/4 v1, 0x3

    if-eq p0, v1, :cond_2

    const/4 v1, 0x4

    if-eq p0, v1, :cond_1

    return v0

    :cond_1
    const p0, 0x7f0805c9

    return p0

    :cond_2
    const p0, 0x7f0805c8

    return p0

    :cond_3
    const p0, 0x7f0805c7

    return p0

    :cond_4
    const p0, 0x7f0805c6

    return p0
.end method

.method public static a(Landroid/content/Context;Les/yf;)Lcom/estrongs/android/pop/app/analysis/c$b;
    .locals 6

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-virtual {p1}, Les/yf;->t()Ljava/lang/String;

    move-result-object v1

    .line 2
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_0

    return-object v0

    .line 3
    :cond_0
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    const/16 v3, 0x480

    .line 4
    invoke-virtual {v2, v1, v3}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;

    const-string v2, "activity"

    .line 5
    invoke-virtual {p0, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/app/ActivityManager;

    const v2, 0x7fffffff

    .line 6
    invoke-virtual {p0, v2}, Landroid/app/ActivityManager;->getRunningServices(I)Ljava/util/List;

    move-result-object v2

    .line 7
    invoke-virtual {p0}, Landroid/app/ActivityManager;->getRunningAppProcesses()Ljava/util/List;

    move-result-object v3

    .line 8
    invoke-static {v2, v3, v1}, Les/ye;->a(Ljava/util/List;Ljava/util/List;Ljava/lang/String;)[I

    move-result-object v4

    .line 9
    array-length v5, v4

    .line 10
    invoke-static {p0, v2, v3, v1, v4}, Les/ye;->a(Landroid/app/ActivityManager;Ljava/util/List;Ljava/util/List;Ljava/lang/String;[I)J

    move-result-wide v1

    .line 11
    new-instance p0, Lcom/estrongs/android/pop/app/analysis/c$b;

    invoke-direct {p0}, Lcom/estrongs/android/pop/app/analysis/c$b;-><init>()V

    const-wide/16 v3, 0x0

    .line 12
    iput-wide v3, p0, Lcom/estrongs/android/pop/app/analysis/c$b;->a:J

    .line 13
    iput v5, p0, Lcom/estrongs/android/pop/app/analysis/c$b;->b:I

    .line 14
    iput-wide v1, p0, Lcom/estrongs/android/pop/app/analysis/c$b;->c:J

    .line 15
    invoke-virtual {p1}, Les/yf;->x()Ljava/util/List;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 16
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_1
    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/zf;

    if-eqz v1, :cond_1

    .line 17
    invoke-virtual {v1}, Les/zf;->g()Z

    move-result v2

    if-eqz v2, :cond_1

    .line 18
    iget-wide v2, p0, Lcom/estrongs/android/pop/app/analysis/c$b;->a:J

    invoke-virtual {v1}, Les/zf;->length()J

    move-result-wide v4

    add-long/2addr v2, v4

    iput-wide v2, p0, Lcom/estrongs/android/pop/app/analysis/c$b;->a:J
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :cond_2
    move-object v0, p0

    goto :goto_1

    :catch_0
    move-exception p0

    .line 19
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :goto_1
    return-object v0
.end method

.method public static a(Lorg/json/JSONObject;Ljava/lang/String;)Lcom/estrongs/android/pop/app/analysis/c$c;
    .locals 1

    .line 38
    new-instance v0, Lcom/estrongs/android/pop/app/analysis/c$c;

    invoke-direct {v0}, Lcom/estrongs/android/pop/app/analysis/c$c;-><init>()V

    if-nez p0, :cond_0

    return-object v0

    .line 39
    :cond_0
    :try_start_0
    invoke-virtual {p0, p1}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object p0

    const-string p1, "key"

    .line 40
    invoke-virtual {p0, p1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, v0, Lcom/estrongs/android/pop/app/analysis/c$c;->a:Ljava/lang/String;

    const-string p1, "cus_des"

    .line 41
    invoke-virtual {p0, p1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, v0, Lcom/estrongs/android/pop/app/analysis/c$c;->d:Ljava/lang/String;

    const-string p1, "des"

    .line 42
    invoke-virtual {p0, p1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, v0, Lcom/estrongs/android/pop/app/analysis/c$c;->c:Ljava/lang/String;

    const-string p1, "level"

    .line 43
    invoke-virtual {p0, p1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, v0, Lcom/estrongs/android/pop/app/analysis/c$c;->b:Ljava/lang/String;

    const-string p1, "type"

    .line 44
    invoke-virtual {p0, p1}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result p0

    iput p0, v0, Lcom/estrongs/android/pop/app/analysis/c$c;->e:I

    .line 45
    invoke-static {v0}, Lcom/estrongs/android/pop/app/analysis/c;->a(Lcom/estrongs/android/pop/app/analysis/c$c;)I

    move-result p0

    iput p0, v0, Lcom/estrongs/android/pop/app/analysis/c$c;->f:I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    const p0, 0x7f0805ca

    .line 46
    iput p0, v0, Lcom/estrongs/android/pop/app/analysis/c$c;->f:I

    :goto_0
    return-object v0
.end method

.method public static a()Lorg/json/JSONObject;
    .locals 5

    .line 27
    sget-object v0, Lcom/estrongs/android/pop/esclasses/g;->b:Ljava/lang/String;

    if-nez v0, :cond_0

    invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Locale;->getCountry()Ljava/lang/String;

    move-result-object v0

    .line 28
    :cond_0
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "country = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, ",curr_lang = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v2, Lcom/estrongs/android/pop/esclasses/g;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;)V

    .line 29
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "isChina = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Lcom/estrongs/android/pop/utils/q;->b()Z

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/util/n;->a(Ljava/lang/String;)V

    const/4 v1, 0x0

    :try_start_0
    const-string v2, "cn"

    .line 30
    invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    const-string v0, "app_permissions_cn.txt"

    goto :goto_0

    :cond_1
    const-string v2, "tw"

    .line 31
    invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    const-string v0, "app_permissions_zh-Hant.txt"

    goto :goto_0

    :cond_2
    const-string v0, "app_permissions_en.txt"

    .line 32
    :goto_0
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/android/pop/FexApplication;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/res/Resources;->getAssets()Landroid/content/res/AssetManager;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    :try_start_1
    const-string v2, "utf8"

    .line 33
    invoke-static {v0, v2}, Lcom/estrongs/fs/util/g;->a(Ljava/io/InputStream;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 34
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3, v2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz v0, :cond_3

    .line 35
    invoke-static {v0}, Lcom/estrongs/fs/util/g;->a(Ljava/io/InputStream;)V

    :cond_3
    return-object v3

    :catchall_0
    move-exception v1

    move-object v4, v1

    move-object v1, v0

    move-object v0, v4

    goto :goto_1

    :catch_0
    nop

    goto :goto_2

    :catchall_1
    move-exception v0

    :goto_1
    if-eqz v1, :cond_4

    invoke-static {v1}, Lcom/estrongs/fs/util/g;->a(Ljava/io/InputStream;)V

    .line 36
    :cond_4
    throw v0

    :catch_1
    move-object v0, v1

    :goto_2
    if-eqz v0, :cond_5

    .line 37
    invoke-static {v0}, Lcom/estrongs/fs/util/g;->a(Ljava/io/InputStream;)V

    :cond_5
    return-object v1
.end method

.method public static a(Landroid/content/Context;Les/yf;Lcom/estrongs/android/pop/app/analysis/c$d;Z)V
    .locals 1
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "InlinedApi"
        }
    .end annotation

    .line 20
    new-instance v0, Lcom/estrongs/android/pop/app/analysis/c$a;

    invoke-direct {v0, p3, p1, p0, p2}, Lcom/estrongs/android/pop/app/analysis/c$a;-><init>(ZLes/yf;Landroid/content/Context;Lcom/estrongs/android/pop/app/analysis/c$d;)V

    if-eqz p2, :cond_0

    .line 21
    invoke-interface {p2}, Lcom/estrongs/android/pop/app/analysis/c$d;->onStart()V

    .line 22
    :cond_0
    sget p0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 p1, 0xb

    const/4 p2, 0x0

    if-lt p0, p1, :cond_1

    .line 23
    sget-object p0, Landroid/os/AsyncTask;->THREAD_POOL_EXECUTOR:Ljava/util/concurrent/Executor;

    new-array p1, p2, [Ljava/lang/Void;

    invoke-virtual {v0, p0, p1}, Landroid/os/AsyncTask;->executeOnExecutor(Ljava/util/concurrent/Executor;[Ljava/lang/Object;)Landroid/os/AsyncTask;

    goto :goto_0

    :cond_1
    new-array p0, p2, [Ljava/lang/Void;

    .line 24
    invoke-virtual {v0, p0}, Landroid/os/AsyncTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    :goto_0
    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)Z
    .locals 1

    const/4 v0, 0x0

    .line 25
    :try_start_0
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object p0

    invoke-virtual {p0, p1, v0}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 v0, 0x1

    goto :goto_0

    :catch_0
    move-exception p0

    .line 26
    invoke-virtual {p0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-static {p0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;)V

    :goto_0
    return v0
.end method
